package work.basic;

public class Forstate {
    public static void main(String[] args) {

        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }

        int i = 0;
        for (; i< 10; ){
            System.out.print(i);
            i++;
        }

        //死循环
//        for (; ; ) {
//            System.out.println(i);
//            i++;
//        }
    }
}
